package com.hongdee.market.bc.service;


import com.hongdee.market.bc.entity.TBcCustomeLevelConf;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/5/15.
 */
public interface ITBcCustomLevelConfService {


    /**
     * update
     * 启用停用
     */

    public void update(String id, String status) throws Exception;

    /**
     * 方法名称: saveOrUpdate
     * 方法描述:  保存或更新实体，通过主键判断
     */

    public TBcCustomeLevelConf saveOrUpdate(TBcCustomeLevelConf tBcCustomeLevelConf) throws Exception;

    /***
     *
     * @param id
     * @return
     * @throws Exception
     */
    public Map info(String id) throws Exception;

    /**
     * 分页
     */
    public Map newPage(String companyId, String start, String limit, String levelCode) throws Exception;

    /***
     *  获取目标值
     * @param comId 公司 ID
     * @return 结果数组 [1,2,3,4,5,6]
     * @throws Exception
     */
    List target(String comId) throws Exception;

    /**
     * 根据CODE 查询等级详情
     *
     * @param code
     * @param companyId
     * @return
     * @throws Exception
     */
    Map code(String code, String companyId) throws Exception;
}
